package com.sure.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sure.common.dao.BaseDao;
import com.sure.common.dao.model.base.BaseRowMapper;
import com.sure.common.exception.SystemException;
import com.sure.common.service.model.BaseVO;
import com.sure.user.service.model.EmpQueryParamsVO;
import com.sure.user.service.model.EmpVO;

/**
 * @Desc UserService
 * @Author Sure
 * @Date 2014年12月30日 上午12:22:26
 */
@Service("empService")
public class EmpServiceImpl implements EmpService {
	
	@Autowired
	private BaseDao baseDao;

	@Override
	public void add(EmpVO empVO) throws SystemException {
		baseDao.add(empVO.getEmp());
	}

	@Override
	public void update(EmpVO empVO) throws SystemException {
		baseDao.update(empVO.getEmp());
	}

	@Override
	public void delete(EmpVO empVO) throws SystemException {
		baseDao.delete(empVO.getEmp());
	}

	@Override
	public List<BaseVO> query(EmpQueryParamsVO queryVO, BaseRowMapper rowMapper)
			throws SystemException {
		return baseDao.query(queryVO, rowMapper);
	}
}
